﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {   
                LabelInfo.Width = new Unit(232);
            }
        }

        protected void BTNSubmit_Click(object sender, EventArgs e)
        {
            LabelHello.Text = $"您好，当前时间是{DateTime.Now.ToString()}";
            LabelCheck.Text = "请确认您填写的信息：";
            LabelInfo.Text = $"姓名：{TBXName.Text}<br/>" +
                $"年龄：{TBXAge.Text}<br/>" +
                $"爱好：{TBXHobby.Text}";
        }
    }
}